package com.example.lottery_system.dao.Mapper;

import com.example.lottery_system.dao.DataObject.ActivityUserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityUserMapper {
    Integer insert(@Param("items") List<ActivityUserDO> activityUserDoList);

    List<ActivityUserDO> selectByIds(@Param("activityId") Long activityId, @Param("userIds") List<Long> userIds);

    Integer updateUserStatus(@Param("activityId") Long activityId,@Param("userIds") List<Long> userIds,@Param("status") String targetUserStatus);


    List<ActivityUserDO> selectByActivityId(@Param("activityId") Long activityId);

    Integer deleteByActivityId(@Param("activityId") Long activityId);
}
